# name : gridtext richtext_grob, Draw (markdown/html) formatted text labels (no plotmath)
# key : gridtext.richtext_grob
# key : richtext_grob@gridtext
# contributor : Shuguang Sun
# --
richtext_grob(
  ${1:text or vector},
  x = unit(0.5, "npc"),
  y = unit(0.5, "npc"),
  hjust = 0.5,
  vjust = 0.5,
  halign = hjust,
  valign = vjust,
  rot = 0,
  default.units = "npc",
  margin = unit(c(0, 0, 0, 0), "pt"),
  padding = unit(c(0, 0, 0, 0), "pt"),
  r = unit(0, "pt"),
  align_widths = FALSE,
  align_heights = FALSE,
  name = NULL,
  gp = gpar(),
  box_gp = gpar(col = NA),
  vp = NULL,
  use_markdown = TRUE,
  debug = FALSE)